#define _CRT_SECURE_NO_WARNINGS 
#include"BinaryTree.h";
void test1()
{
	char arr[] = "ABD##E#H##CF##G##";
	int size = sizeof(arr) / sizeof(arr[0]);
	int index = 0;
	BTNode* root = BinaryTreeCreate(arr, size, &index);
	BinaryTreePrevOrder(root);
	printf("\n");
	BinaryTreeInOrder(root);
	printf("\n");
	BinaryTreePostOrder(root);
	printf("\n");
	printf("%d\n", BinaryTreeSize(root));
	printf("%d\n", BinaryTreeLeafSize(root));
	printf("%d\n", BinaryTreeLevelKSize(root, 4));
	BTNode* tem = BinaryTreeFind(root, 'H');
	printf("%c\n", tem->val);
	BinaryTreeLevelOrder(root);
}
